{% extends 'base/base.html' %}
{% block title %}
    <title>用户登录</title>
{% endblock %}
{% block top %}
{% endblock %}
{% block container %}
<div class="row">
    <div class="col-md-4 col-md-offset-4">
        <h3>欢迎登录后台管理系统</h3>
        <form method="post" action="{{ url_for('accounts.login') }}">
            {{ form.csrf_token }}
            <div class="form-group">
                {{ form.username.label }}
                {{ form.username }}
            </div>
            <div class="form-group">
                {{ form.password.label }}
                {{ form.password }}
            </div>
{#            <div class="form-group">#}
{#                <label for="exampleInputFile">File input</label>#}
{#                <input type="file" id="exampleInputFile">#}
{#                <p class="help-block">Example block-level help text here.</p>#}
{#            </div>#}
{#            <div class="checkbox">#}
{#                <label>#}
{#                  <input type="checkbox"> Check me out#}
{#                </label>#}
{#            </div>#}
            <button type="submit" class="btn btn-default">Submit</button>
            {% for err in form.errors %}
                <p>{{ err }}</p>
            {% endfor %}

        </form>
    </div>
</div>
{% endblock %}